//
//  SliderBannerView.h
//  HAHAWENWAN
//
//  Created by xiaowu on 2017/10/16.
//  Copyright © 2017年 ZDQK. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SliderBannerItem.h"

@class SliderBannerView;

@protocol SliderBannerViewDelegate <NSObject>

@optional
- (void)sliderBannerView:(SliderBannerView *)sliderBannerView clickIndex:(NSInteger)index;
- (void)sliderBannerView:(SliderBannerView *)sliderBannerView playButtonClickIndex:(NSInteger)index;

@end



@interface SliderBannerView : UIView

- (void)setDataSource:(NSArray <SliderBannerItem *> *)dataSource withDelegate:(id <SliderBannerViewDelegate>)delegate withPlaceHolder:(UIImage *)image infiniteLoop:(BOOL)loop;

@property (nonatomic, weak) id <SliderBannerViewDelegate> delegate;
@end
